<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        [v-cloak]{
            display: none;
        }
    </style>
</head>
<body>
    <div v-cloak id="app">
        <div>{{msg2}}</div>
        <div v-text="msg2"></div>
        <div v-html="msg2"></div>


        <input type="button" v-bind:value="msg" v-bind:title="mytitle+123" @click="show">

        <p>
            <input type="button" :value="msg2" :title="mytitle+123" v-on:click="alert('123')">
        </p>

    </div>


    <script src="lib/vue.js"></script>
    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                msg: 'hello world',
                msg2: '<h1>我是大的h1标题<h1>',
                mytitle: '这是自定义的title'
            },
            methods:{
                show:function () {
                    alert('button1');
                }
            }
        })
    </script>
</body>
</html>

